package com.homegoods.designer.model;

import com.alibaba.fastjson.annotation.JSONField;
import com.homegoods.designer.item.DesignerCaseItem;
import com.kedll.library.adapter.MultiTypeAdapter;
import com.kedll.library.mvp.BaseModel;

/**
 * @author QiQi
 * @ClassName: DesignerCaseModel
 * @date 2018/9/15
 * @description
 */
public class DesignerCaseModel extends BaseModel<DesignerCaseItem> {
    /**
     * bgimg：图片；
     * title：标题；
     * huxing：户型
     * mianji：面积
     * //        private String bgimg;
     * //        private String title;
     * //        private String area;
     * //        private String family;
     */
    private String id;
    private String bgimg;
    private String title;
    @JSONField(alternateNames = {"area", "mianji"})
    private String mianji;
    @JSONField(alternateNames = {"family", "huxing"})
    private String huxing;

    public String getBgimg() {
        return bgimg == null ? "" : bgimg;
    }

    public void setBgimg(String bgimg) {
        this.bgimg = bgimg;
    }

    public String getTitle() {
        return title == null ? "" : title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getHuxing() {
        return huxing == null ? "" : huxing;
    }

    public void setHuxing(String huxing) {
        this.huxing = huxing;
    }

    public String getMianji() {
        return mianji == null ? "" : mianji;
    }

    public void setMianji(String mianji) {
        this.mianji = mianji;
    }

    public String getId() {
        return id == null ? "" : id;
    }

    public void setId(String id) {
        this.id = id;
    }

    @Override
    public DesignerCaseItem createItem(int type, MultiTypeAdapter adapter) {
        return new DesignerCaseItem(type, this, adapter);
    }
}
